//
//  UIViewController+Extension.m
//  DFKit
//
//  Created by rujia chen on 17/4/25.
//  Copyright © 2017年 chenrj90. All rights reserved.
//

#import "UIViewController+Extension.h"

@implementation UIViewController (Extension)

+ (void)load {
    [self df_swizzleMethod:@selector(viewDidLoad) withMethod:@selector(_viewDidLoad) error:nil];
}

- (void)_viewDidLoad {
    [self _viewDidLoad];
    if ([NSStringFromClass(self.class) hasPrefix:@"DF"]) {
//        self.df_navigationBarForegourndColor = [UIColor df_colorByHex:@"ffffff"];
//        self.df_navigationBarTintColor = [UIColor df_colorByHex:@"121212"];
        self.df_backIndicatorImage = [[UIImage imageNamed:@"back"] imageWithAlignmentRectInsets:UIEdgeInsetsMake(0, 0, -2, 0)];
        self.view.backgroundColor = [UIColor df_colorByHex:@"ffffff"];
        [self setNeedsStatusBarAppearanceUpdate];
    }
}

@end
